From: Carlos Soriano Date: Sat, 31 Aug 2013 13:05:53 +0000 (+0200) Subject: theme: Change icons style to follow new design X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3535 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9a8bf3b88132d2a1105594a983ddde8425c8aa01;p=gnome-shell.git theme: Change icons style to follow new design Change the background, glow and labels of the Dash and AppDisplay to follow the new design https://bugzilla.gnome.org/show_bug.cgi?id=706081 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 9ed2867af..8e8b7551c 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -908,9 +908,9 @@ StScrollBar StButton#vhandle:active { /* Application Launchers, Grid and List results */ .icon-grid { - spacing: 36px; - -shell-grid-horizontal-item-size: 118px; - -shell-grid-vertical-item-size: 118px; + spacing: 30px; + -shell-grid-horizontal-item-size: 136px; + -shell-grid-vertical-item-size: 136px; } .icon-grid .overview-icon { @@ -986,13 +986,21 @@ StScrollBar StButton#vhandle:active { background-image: url("more-results.svg"); } +.app-well-app > .overview-icon.overview-icon-with-label, +.grid-search-result .overview-icon.overview-icon-with-label { + /* since the label controls its own spacing, it is visually more + consistent to use different padding values for top and bottom */ + padding: 10px 8px 5px 8px; + spacing: 4px; +} + .app-well-app > .overview-icon, .show-apps > .overview-icon, .search-provider-icon, .list-search-result, .grid-search-result .overview-icon { border-radius: 4px; - padding: 3px; + padding: 6px; border: 1px rgba(0,0,0,0); transition-duration: 100ms; text-align: center; @@ -1004,7 +1012,7 @@ StScrollBar StButton#vhandle:active { .app-folder-popup { -arrow-border-radius: 8px; - -arrow-background-color: black; + -arrow-background-color: rgba(0,0,0,0.3); -arrow-base: 24px; -arrow-rise: 11px; } @@ -1020,7 +1028,7 @@ StScrollBar StButton#vhandle:active { } .app-well-app.app-folder > .overview-icon { - background-color: rgba(0,0,0,0.5); + background-color: rgba(0,0,0,0.3); } .app-well-app:hover > .overview-icon, @@ -1035,7 +1043,7 @@ StScrollBar StButton#vhandle:active { } .app-display .app-well-app > .overview-icon { - border-radius: 10px; + border-radius: 4px; } .list-search-result:hover .list-search-result-description { diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 178a8419b..bcadffa01 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -21,7 +21,12 @@ const BaseIcon = new Lang.Class({ params = Params.parse(params, { createIcon: null, setSizeManually: false, showLabel: true }); - this.actor = new St.Bin({ style_class: 'overview-icon', + + let styleClass = 'overview-icon'; + if (params.showLabel) + styleClass += ' overview-icon-with-label'; + + this.actor = new St.Bin({ style_class: styleClass, x_fill: true, y_fill: true }); this.actor._delegate = this;